/*
 * @Author: yushuaixm
 */
const { http } = uni.$zz


export const getcode = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/auth/getcode', params, config)

export const savebs = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/bs/bcbs', params, config)


export const queryCount = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/bs/queryCount', params, config)


export const getBsByWxid = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/bs/getBsByWxid', params, config)


export default { getcode, savebs, queryCount, getBsByWxid };